The Label Control
Labels are used to add text for informative, breadcrumbing, or decorative purposes on the app.
When focus comes to this object, it immediately processes the GotFocus, OnEnter and LostFocus events and focus then moves to the next prompt. It never holds the focus.
Use the TextOptions property to format whether the label appears on a single line, in multiple words, in multiple lines, or, in a vertical format. If using MultipleLines, this is set to two lines.
The Caption of a label can:
- hold hard-coded text. (TextId is left blank and DataLink = False.)
- be left blank and at runtime, be populated with text sourced from another object (i.e. TextBox). (DataLink = True; LinkTo = source object name.)
- be left blank and at runtime, be populated with the translated TextId. (DataLink = False; TextId = TextID in Text Resources.)
The Layout property ONLY displays when the label is placed on the form. Its absent when the label is on a page. When present the Col (column), Row, and Span properties are used to specify which columns or rows the label property will span for decorative and content sizing purposes.
The properties used here are similar to the ones used by all the other controls. For property descriptions, see Graphical Control Properties.